
from random import randint

experiments = 100

times = []

for i in range(1,100):
    target = 100.0
    time = 0
    while target < 200:
        # print "%0.1f" % target
        if randint(0,1) == 0:
            target = target*1.1
        else:
            target = target*1.02
            time = time+1
    # print "time: ", time
    times.append(time)

mx = max(times)
